package com.wt.wechatTools.room.entity;

import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity
public class ContactsEntity {
    //设置主键自增长
    @PrimaryKey(autoGenerate = true)
    private Integer id;

    private String name = "";

    private String cellPhone="";

    private Integer state; //等于1为"未使用"  等于2为"已执行"  等于3为"无法查找"  等于4为"已添加"  等于5为"任务清单"

    private Integer tastBatch = 0;  //任务批次

    public ContactsEntity(Integer id, String name, String cellPhone, Integer state, Integer tastBatch) {
        this.id = id;
        this.name = name;
        this.cellPhone = cellPhone;
        this.state = state;
        this.tastBatch = tastBatch;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCellPhone() {
        return cellPhone;
    }

    public void setCellPhone(String cellPhone) {
        this.cellPhone = cellPhone;
    }

    public Integer getState() {
        return state;
    }

    @Override
    public String toString() {
        return "ContactsEntity{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", cellPhone='" + cellPhone + '\'' +
                ", state=" + state +
                ", tastBatch=" + tastBatch +
                '}';
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getTastBatch() {
        return tastBatch;
    }

    public void setTastBatch(Integer tastBatch) {
        this.tastBatch = tastBatch;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        name = name;
    }
}
